# 基础镜像
FROM openjdk:8-jre

ARG JAR_NAME
ARG VOLUME_PATH=/home/zhongbar

ENV ENV_JAR_NAME=${JAR_NAME}

MAINTAINER guofu
EXPOSE 9207
VOLUME ${VOLUME_PATH}
RUN mkdir -p ${VOLUME_PATH}
WORKDIR ${VOLUME_PATH}
COPY ${JAR_NAME} ${VOLUME_PATH}/${JAR_NAME}
ENTRYPOINT ["sh", "-c", "java -jar ${ENV_JAR_NAME}"]
